package com.tanxi521.springboot.mapper;

import com.tanxi521.springboot.pojo.Page;
import com.tanxi521.springboot.pojo.RewardCard;
import com.tanxi521.springboot.pojo.Rewards;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RewardsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Rewards record);

    int insertSelective(Rewards record);

    Rewards selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Rewards record);

    int updateByPrimaryKey(Rewards record);

    List<Rewards> selectListByRewards(Page page, @Param("rewards") Rewards rewards);

    int selectRewardsCountByRewards(Rewards rewards);

    List<RewardCard> selectRewardsByUserName(String userName);
}